package ext;

public class Singleton {
    private Singleton() {
        
    }

    private static class Instance {
        private static Singleton instance = new Singleton();
    }

    public static Singleton getInstance() {
        return Instance.instance;
    }
    
    // public static Singleton getSingleton() {
    //         return Instance.singleton;
    // }
    
    // private static class Instance {
    //     static Sigleton singleton = new Singleton();

    // }

    public static void main(String[] args){
        System.out.println(getInstance());
    }
}


/* 

*/
    

